package com.yc.service;

import com.yc.entity.StockEntity;
import com.yc.mapper.StockMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yangc91@bngrp.com
 * @date 2020/8/6 11:13
 */
@Service
public class StockService {
    @Autowired
    private StockMapper stockMapper;
    public StockEntity getByStockById(Integer id) {
        return stockMapper.getByStockById(id);
    }

    public String updateStockById(Long id) {
        stockMapper.updateStockById(id);
        return "success";
    }
}
